import request from '@/utils/request'

// 查询历史阈值列表
export function listThresholdhistory(query) {
  return request({
    url: '/gelly/thresholdhistory/list',
    method: 'get',
    params: query
  })
}

// 查询历史阈值详细
export function getThresholdhistory(id) {
  return request({
    url: '/gelly/thresholdhistory/' + id,
    method: 'get'
  })
}

// 新增历史阈值
export function addThresholdhistory(data) {
  return request({
    url: '/gelly/thresholdhistory',
    method: 'post',
    data: data
  })
}

// 修改历史阈值
export function updateThresholdhistory(data) {
  return request({
    url: '/gelly/thresholdhistory',
    method: 'put',
    data: data
  })
}

// 删除历史阈值
export function delThresholdhistory(id) {
  return request({
    url: '/gelly/thresholdhistory/' + id,
    method: 'delete'
  })
}
